--[[
 * File containing deprecated functions and constants used by alot of scripts and other engines
]]--

TRUE = true
FALSE = false
LUA_ERROR = false
LUA_NO_ERROR = true

TALKTYPE_PRIVATE = TALKTYPE_PRIVATE_TO
TALKTYPE_PRIVATE_RED = TALKTYPE_PRIVATE_RED_TO

WORLDTYPE_OPTIONAL = WORLD_TYPE_NO_PVP
WORLDTYPE_OPEN = WORLD_TYPE_PVP
WORLDTYPE_HARDCORE = WORLD_TYPE_PVP_ENFORCED

WORLD_TYPE_OPTIONAL = WORLD_TYPE_NO_PVP
WORLD_TYPE_OPEN = WORLD_TYPE_PVP
WORLD_TYPE_HARDCORE = WORLD_TYPE_PVP_ENFORCED

GUILD_MEMBER = GUILDLEVEL_MEMBER
GUILD_VICE = GUILDLEVEL_VICE
GUILD_LEADER = GUILDLEVEL_LEADER

GAMESTATE_STARTUP = GAME_STATE_STARTUP
GAMESTATE_INIT = GAME_STATE_INIT
GAMESTATE_NORMAL = GAME_STATE_NORMAL
GAMESTATE_MAINTAIN = GAME_STATE_MAINTAIN
GAMESTATE_CLOSED = GAME_STATE_CLOSED
GAMESTATE_CLOSING = GAME_STATE_CLOSING
GAMESTATE_SHUTDOWN = GAME_STATE_SHUTDOWN

doPlayerSay = doCreatureSay
getPlayerHealth = getCreatureHealth
getPlayerMaxHealth = getCreatureMaxHealth
getPlayerHideHealth = getCreatureHideHealth
doPlayerSetHideHealth = doCreatureSetHideHealth
doSetCreatureHideHealth = doCreatureSetHideHealth
getPlayerMagicLevel = getPlayerMagLevel
getPlayerMana = getCreatureMana
getPlayerMaxMana = getCreatureMaxMana
saveServer = doSaveServer
saveData = doSaveServer
refreshMap = doRefreshMap
cleanMap = doCleanMap
getIpByName = getIPByPlayerName
getItemDef = getItemDefense
getItemExtraDef = getItemExtraDefense
getItemTwoHanded = isItemTwoHanded
getPlayerManaSpent = getPlayerSpentMana
playerLearnInstantSpell = doPlayerLearnInstantSpell
doPlayerAddSpentMana = doPlayerAddManaSpent
doBroadcastMessage = broadcastMessage
getPlayerManaRequired = getPlayerRequiredMana
getPlayerName = getCreatureName
getPlayerPosition = getCreaturePosition
getPlayerMasterPos = getPlayerTown
getPlayerLookDir = getCreatureLookDirection
getCreatureLookDir = getCreatureLookDirection
doCreatureSetLookDir = doSetCreatureDirection
getPlayersOnline = getOnlinePlayers
getPlayersOnlineList = getOnlinePlayers
doPlayerAddMana = doCreatureAddMana
isMoveable = isMovable
getPlayerByName = getCreatureByName
getThingFromPos = getThingfromPos
getThingFromPossition = getThingfromPos
getThingfromPosision = getThingfromPos